import request from '@/utils/request'

//获取spu列表
export const reqGetSpuListData = (page, limit, category3Id) => {
    return request.get(`/admin/product/${page}/${limit}?category3Id=${category3Id}`)
}

//添加spuInfo
export const reqSaveSpuInfo = (spuInfo) => {
    return request.post(`/admin/product/saveSpuInfo`, spuInfo)
}

//更新spuInfo
export const reqUpdateSpuInfo = (spuInfo) => {
    return request.post(`/admin/product/updateSpuInfo`, spuInfo)
}


//删除spuInfo
export const reqDeleteSpuInfo = () => {
    return request.delete(`/admin/product/deleteSpu/${spuId}`)
}

//获取所有trademark品牌数据
export const reqGetAllTrademarkList = () => {
    return request.get(`/admin/product/baseTrademark/getTrademarkList`)
}

//获取所有销售属性数据
export const reqGetBaseSaleAttrList = () => {
    return request.get(`/admin/product/baseSaleAttrList`)
}